import request from '@/util/axios'
import apiUrl from '../apiUrlConfig'

export const getUserList = (option) =>
request({
    url: apiUrl.Url_company_getAuthCompanyPage,
    data: option,
    method: 'post'
})
export const approveCompany = (option) =>
request({
    url: apiUrl.Url_company_approveCompany,
    data: option,
    method: 'post'
})
export const getStaffList = (option) =>
request({
    url: apiUrl.Url_company_getAuthCompanyPage,
    data: option,
    method: 'post'
})
export const getClient = (option) =>
request({
    url: apiUrl.Url_company_getAuthCompanyPage,
    data: option,
    method: 'post'
})

// 供应商基本信息接口
export const getCompanyQccinfoByName = (option) =>
request({
    url: apiUrl.Url_company_getCompanyQccinfoByName,
    method: "get",
    params: option
})

// 获取企业认证信息
export const getCompanyPreauthById = (option) =>
request({
    url: apiUrl.Url_company_getCompanyPreauthById,
    method: "get",
    params: option
})

// 编辑企业信息
export const updateCompanyPreauth = (option) =>
request({
    url: apiUrl.Url_company_updateCompanyPreauth,
    data: option,
    method: 'post'
})

// 获取客户列表
export const getCustomerPage = (option) =>
request({
    url: apiUrl.Url_company_getCustomerPage,
    data: option,
    method: 'post'
})

// 获取供应商列表
export const getProviderPage = (option) =>
request({
    url: apiUrl.Url_company_getProviderPage,
    data: option,
    method: 'post'
})

//获取员工管理列表
export const getUserManagementList = (option) =>
request({
    url: apiUrl.Url_company_getUserManagementList,
    method: "get",
    params: option
})
